﻿using MessagePack;

namespace Manon.Repository.Collections
{

    [MessagePackObject(true)]
    public abstract class BasePageInput
    {
        internal int IndexFrom { get; set; }

        /// <summary>
        /// 页码
        /// </summary> 
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 每页显示数
        /// </summary> 
        public int PageSize { get; set; } = 20;

        /// <summary>
        /// 排序字段
        /// </summary> 
        public IEnumerable<QueryOrderInput> order { get; set; } = new List<QueryOrderInput>();
    }
}
